package com.example.e_comm.util;

/**
 * @author 迪斯乔斯达
 * @version 0.1
 * @data 2025/10/24 09:30
 */

import org.springframework.stereotype.Component;

import java.util.UUID;

@Component
public class TokenUtil {
    public String generaToken(){
        return UUID.randomUUID().toString().replace("-","");
    }
    public boolean validateToken(String token){
        return token != null && token.length() == 32;
    }
}
